package com.wulian.common.vo;

import com.wulian.common.euums.AppErrorCodeEnum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @BelongsProject: yc-parent
 * @BelongsPackage: com.wulian.other.dto
 * @Author: gaoshaomeng
 * @CreateTime: 2019-12-16 16:31
 * @Description: ${Description}
 */
@ApiModel("巡检记录错误信息返回模板")
@Data
@ToString
public class PatrolRecordError {
    static final PatrolRecordError INNER_ERROR = new PatrolRecordError();
    static{
        INNER_ERROR.setErr_msg(AppErrorCodeEnum.ERROR_30002_INNER.getDescribe());
        INNER_ERROR.setErr_code(AppErrorCodeEnum.ERROR_30002_INNER.getErrorCode());
    }
    @ApiModelProperty("状态标识")
    final private String status = "01";
    @ApiModelProperty("错误信息")
    private String err_msg;
    @ApiModelProperty("错误标识")
    private Integer err_code;
    public static PatrolRecordError getInnerError(){
        return INNER_ERROR;
    }
}
